<include file="public/layout" />
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>分销关系管理 - 添加关系</h3>
            </div>
        </div>
    </div>
    <form class="form-horizontal" method="post" id="add_form">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="relation_name"><em>*</em>关系名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="relation_name" id="relation_name" class="input-txt">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="big_out_number"><em>*</em>大出局规定人数</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="big_out_number" id="big_out_number" class="input-txt">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="big_out_award"><em>*</em>大出局奖励</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="big_out_award" id="big_out_award" class="input-txt">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="small_out_number"><em>*</em>小出局规定人数</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="small_out_number" id="small_out_number" class="input-txt">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="small_out_award"><em>*</em>小出局奖励</label>
                </dt>
                <dd class="opt">
                    <input type="text" name="small_out_award" id="small_out_award" class="input-txt">
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>

            <div class="bot"><a href="JavaScript:void(0);" onclick="checkSubmit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>
        </div>
    </form>
</div>
<script type="text/javascript">
    function checkSubmit(){
        var error = '';
        $("input[type='text']").each(function(){
            if($.trim($(this).val()) == '') error = '必填项不能为空';
        })
        if(error){
            layer.alert(error, {icon: 2});  //alert(error);
            return false;
        }
        $('#add_form').submit();
    }
</script>
</body>
</html>